//
//  tagView.m
//  LoveTourism
//
//  Created by qianfeng0 on 16/6/24.
//  Copyright © 2016年 王超. All rights reserved.
//

#import "tagView.h"

@implementation tagView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    CGSize size = self.frame.size;
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetStrokeColorWithColor(context, [UIColor grayColor].CGColor);
    CGContextSetLineWidth(context, 2);
    CGContextSetShadowWithColor(context, CGSizeMake(0, 1), 0.6, [UIColor cyanColor].CGColor);
    CGPoint point[] = {
      CGPointMake(0, size.height/2),
        CGPointMake(15, 0),
        CGPointMake(size.width, 0),
        CGPointMake(size.width, size.height),
        CGPointMake(15, size.height)
    };
    CGContextAddLines(context, point, sizeof(point)/sizeof(point[0]));
    CGContextClosePath(context);
    CGContextStrokePath(context);
}


@end
